<template>
  <div class="feature-card" @click="$emit('click')">
    <div class="feature-card__title">{{ title }}</div>
    <div class="feature-card__desc">{{ desc }}</div>
    <img class="feature-card__icon" :src="icon" mode="widthFix">
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: ''
    },
    desc: {
      type: String,
      default: ''
    },
    icon: {
      type: String,
      default: ''
    }
  }
}
</script>

<style lang="less">
.feature-card {
  border-radius: 24px;
  background-color: #e4eff9;
  padding: 20px 28px 20px 28px;
  position: relative;
  &__title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 12px;
  }

  &__desc {
    font-size: 28px;
    white-space: pre-line;
  }

  &__icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 120px;
    height: 100px;
    z-index: 10;
  }
}
</style>
